<div class="row-fluid">
	<a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
	    <div class="btn-toolbar">
		    <button class="btn btn-primary ifrm" data-url="/goods/addGoods" data-width="770" data-height="730" data-title="入库商品" data-params="sum/<?=$enckey?>" style="position:relative;float:right;padding:3px 6px;margin-right:10px">入库商品</button>
		    <form>
		    	<label style="display: inline;">商品名称：</label><input class="input input-medium" type="text" name="goods_title" value="<?=I('get.goods_title')?>" />
		    	<label style="display: inline;">&nbsp;&nbsp;商品SKUID：</label><input class="input input-medium" type="text" name="goods_skuid" value="<?=I('get.goods_skuid')?>" />
		    	<label style="display: inline;">&nbsp;&nbsp;品牌：</label><input class="input input-medium" type="text" name="brand" value="<?=I('get.brand')?>" />
		    	<input type="hidden" value="<?=I('get.res')?>" name="res" />
		    	<button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
		    </form>
		</div>
		<hr>
		<table class="table">
		      <thead>
		        <tr>
		          <th style="text-align:center">商品ID</th>
		          <th style="text-align:center">商品skuid</th>
		          <th style="text-align:center">商品图片</th>
		          <th style="text-align:left">商品标题</th>
		          <th style="text-align:center">商品类型</th>
		          <th style="text-align:center">商品品牌</th>
		          <th style="text-align:center">库存</th>
		          <th style="text-align:center">商品价格</th>
		          <th style="text-align:center">入库时间</th>
		      	  <th style="text-align:center">操作</th>
		        </tr>
		      </thead>
		      <tbody>
		      	<?php if($getData){foreach($getData AS $key=>$val){ ?>
		        <tr>
		          <td style="text-align:center;vertical-align:middle"><?=$val['id']?></td>
		          <td style="text-align:center;vertical-align:middle"><if condition="$val['goods_skuid']">{{$val['goods_skuid']}}<else/>-</if></td>
		          <td style="text-align:center;vertical-align:middle"><img src="<?=$val['goods_pic']?>" style="width:100px" /></td>
		          <td style="text-align:left;vertical-align:middle"><?=$val['goods_title']?></td>
		          <td style="text-align:center;vertical-align:middle">
					  <if condition="$val['taxes'] eq 1">
						  保税仓(完税)
						  <elseif condition="$val['taxes'] eq 2"/>
						  保税仓(未完税)
						  <elseif condition="$val['taxes'] eq 3"/>
						  大贸(完税)
						  <elseif condition="$val['taxes'] eq 4"/>
						  海外直邮(完税)
						  <elseif condition="$val['taxes'] eq 5"/>
						  海外直邮(未完税)
						  <elseif condition="$val['taxes'] eq 6"/>
						  跨境(未完税)
                          <elseif condition="$val['taxes'] eq 7"/>
                          跨境(完税)
					  </if>
				  </td>
		          <td style="text-align:center;vertical-align:middle">{{$val['brand']|default='-'}}</td>
		          <td style="text-align:center;vertical-align:middle"><?=$val['kcun']?> 件</td>
				  <td style="text-align:center;vertical-align:middle"><?=$val['goods_price']?> / <?=$val['goods_attr']?></td>
		          <td style="text-align:center;vertical-align:middle"><?=date('Y-m-d H:i:s',$val['add_at'])?></td>
		          <td style="text-align:center;vertical-align:middle">
		              <a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/goods/addGoods" data-width="770" data-height="730" style="padding: 0px 4px;" data-title="修改项目" data-params="goods_id/<?=$val['id']?>"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
		              <a href="/goods/deGoods?goods_id=<?=$val['id']?>" style="padding: 0px 4px;" class="deproject btn btn-danger" title="删除该商品" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
		          </td>
		        </tr>
		        <?php }}else{?>
		        <tr><td style="text-align:center;vertical-align:middle" colspan=9>暂无数据</td></tr>
		        <?php }?>
		      </tbody>
		   </table>
		   <span style="float:right;margin-top:-44px"><?=$page?></span>
	</div>
</div>
<script>
$(function(){
	$('.deproject').live('click',function(){
		if(!window.confirm('确认删除吗 ?')){
			return false;
		}
		window.location = $(this).attr('href');
	});
	$('.hoverTag').click(function(){
		_thish = $(this);
		art.dialog({
		    fixed: true,
		    content: '<div style="width:300px;text-align:left"><h3>项目亮点：</h3><p>'+_thish.attr('cons')+'</p><h3>市场分析：</h3><p>'+_thish.attr('cons_market')+'</p></div>',
		    width: '390px',
		    title: '项目详情'
		});
	});
})
</script>